package com.fuqi.android.zhongcai.base.view.activity.deprecated;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import com.fuqi.android.zhongcai.R;
import com.fuqi.android.zhongcai.base.view.activity.BaseActivity;
import com.fuqi.android.zhongcai.utils.ActivityUtils;

import butterknife.Bind;
import butterknife.OnClick;

/**
 * @deprecated
 * Created by Administrator on 2016/9/5 0005.
 */
public class AdviceActivity extends BaseActivity {

    @Bind(R.id.advicetext)
    EditText advicetext;
    @Bind(R.id.contactmothed)
    EditText contactmothed;
    @Bind(R.id.okadvice)
    TextView okadvice;

      String advicetextstr,contactmothedstr;

    @OnClick({R.id.okadvice})
    public  void OnClick(View view){
        advicetextstr = advicetext.getText().toString().trim();
        contactmothedstr =  contactmothed.getText().toString().trim();
        switch (view.getId()){
            case R.id.okadvice:
                if( advicetextstr.isEmpty()){
                    ActivityUtils.toast("请输入反馈建议");
                }else{
                    ActivityUtils.toast(" 建议:"+advicetextstr+"\n 联系方式S:"+contactmothedstr);
                }
                break;
        }
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        titleBar.setTitle("反馈建议");
    }
    @Override
    public void initView() {

    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {

    }

    @Override
    public boolean hasTitleBar() {
        return true;
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_advice;
    }
}
